﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestList.aspx.cs" Inherits="Guest_TestList" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>فهرست آزمایشات</title>
    <link href="~/Styles/B_Yekan.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body class="sun">
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div id="header">
        <a href="../Default.aspx" class="logo">
            <img src="../Styles/images/logo.png" alt="" /></a>
     <ul>
       <li><a id="A1" href="~/Default.aspx" runat="server">صفحه اصلی</a> </li>                           
            <li ><a id="A2" href="~/LoginPage.aspx" runat="server">ورود و جواب دهی</a> </li>                                  
            <li><a id="A3"  href="~/Guest/Help.aspx" runat="server">راهنمای پذیرش</a>
            </li>
            <li><a id="A4"  href="~/Guest/Gallery.aspx" runat="server">گالری</a> </li>
            <li><a id="A5"  href="~/Guest/Paper.aspx" runat="server">مقالات</a> </li>
            <li class="selected"><a id="A6"  href="~/Guest/TestList.aspx" runat="server">فهرست آزمایشات</a> </li>            
            <li><a id="A7"  href="~/Guest/AboutUs.aspx" runat="server">درباره ما</a> </li>  
        </ul>
    </div>
    <div id="body" dir="rtl">	
			<h2>فهرست آزمایشات</h2>
            <br />
        <div align="center">
            <telerik:radgrid id="TestRadGrid" runat="server" cellspacing="0" datasourceid="TestEntityDataSource"
                gridlines="None" allowfilteringbycolumn="True" height="325px" showgrouppanel="True"
                width="710px" skin="Windows7" autogeneratecolumns="False" font-names="Tahoma"
                allowsorting="True">
                        <SortingSettings SortedAscToolTip="افزایشی" SortedDescToolTip="کاهشی" SortToolTip="برای مرتب سازی انتخاب کنید" />
                        <ClientSettings AllowDragToGroup="True">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <MasterTableView DataSourceID="TestEntityDataSource" Dir="RTL" DataKeyNames="CategoryItemID">
                            <NoRecordsTemplate>
                                آزمایشی وجود ندارد
                            </NoRecordsTemplate>
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <GroupByExpressions>
                                <telerik:GridGroupByExpression>
                                    <GroupByFields>
                                        <telerik:GridGroupByField FieldAlias="CategoryTitle" FieldName="CategoryTitle" FormatString=""
                                            HeaderText="گروه" />
                                    </GroupByFields>
                                </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                            <Columns>
                                <telerik:GridBoundColumn DataField="CategoryTitle" FilterControlAltText="Filter CategoryTitle column"
                                    HeaderText="عنوان گروه" SortExpression="CategoryTitle" UniqueName="CategoryTitle">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="200px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="CategoryItemTitle" FilterControlAltText="Filter column column"
                                    HeaderText="عنوان آزمایش" UniqueName="CategoryItemTitle">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="310px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                                    HeaderText="توضیحات" SortExpression="Description" UniqueName="Description">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="200px" />
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <AlternatingItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                        <GroupHeaderItemStyle Font-Names="Tahoma" HorizontalAlign="Center"
                            VerticalAlign="Middle" />
                        <GroupPanel Text="عنصر گروه بندی را به این جا اضافه کنید" Font-Names="Tahoma">
                        </GroupPanel>
                        <HeaderStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <FilterItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                        <ItemStyle Font-Names="Tahoma" />
                        <PagerStyle FirstPageToolTip="صفحه اول" HorizontalAlign="Center" LastPageToolTip="صفحه آخر"
                            NextPagesToolTip="صفحات بعدی" NextPageToolTip="صفحه بعدی" PageSizeLabelText="اندازه صفحه:"
                            PrevPagesToolTip="صفحات قبلی" PrevPageToolTip="صفحه قبلی" VerticalAlign="Middle" />
                        <FilterMenu EnableImageSprites="False" Font-Names="Tahoma">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </FilterMenu>
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </HeaderContextMenu>
                    </telerik:radgrid>
        </div>
    </div>
    <asp:EntityDataSource ID="TestEntityDataSource" runat="server" ConnectionString="name=DefaultEntityConnection"
        DefaultContainerName="DefaultEntityConnection" CommandText="SELECT T2.CategoryTitle AS CategoryTitle, 
         T1.CategoryItemTitle AS CategoryItemTitle ,
         T1.CategoryItemID AS CategoryItemID , 
         T1.Description AS Description  
         FROM DefaultEntityConnection.CategoryItems AS T1
         INNER JOIN DefaultEntityConnection.Categories  AS T2 On T1.CategoryItemID = T2.CategoryID"
        EnableFlattening="False" AutoGenerateOrderByClause="true">
    </asp:EntityDataSource>
    </form>
</body>
</html>
